<?php

/**
 * @version $Id$
 * @package
 * @author Alexander Anokhin <ava@vaz.ru>
 */

class Requisites extends Zend_Db_Table
{
	protected  $_name = 'rekvizit';
	protected $_primary = array('type_doc','id_rek');
	protected $_rowClass = 'Requisite';
	
	
	
	protected $_referenceMap = array(
        'Document' => array(
            'columns'           => 'type_doc',
            'refTableClass'     => 'Documents',
            'refColumns'        => 'type'
            )
         ,'Value' => array(
            'columns'           => 'id_rek',
            'refTableClass'     => 'ReqValues',
            'refColumns'        => 'id_rek'
         ),
         'Type' => array(
            'columns'           => 'id_rek',
            'refTableClass'     => 'RequisiteTypes',
            'refColumns'        => 'id_rek'
         )
         
         
            );
}
